import MainScene from "../scene/MainScene";

const {ccclass, property} = cc._decorator;

@ccclass
export default class Game {
	
    
    public static Canvas: any
    
    public static Background: cc.Node;
    public static View: cc.Node;
    public static Popup: cc.Node;
    public static System: cc.Node;

    public constructor() 
    {

	}
	
    // 起始调用序列
    public static init(_main:MainScene)
    { 
        Game.Canvas = cc.game.canvas;
        Game.Background = _main.getBackgroundLayer();
        Game.View = _main.getViewLayer();
        Game.Popup = _main.getPopupLayer();
        Game.System = _main.getSystemLayer();
    };
        
    public static launch(): void
    {
        
    }
	

    static matchOperateLog: any[] = [];

    static addMatchOperateLog(v: any): void
    {
        Game.matchOperateLog.push(v);
    }
    
    static resetMatchOperateLog(): void
    {
        Game.matchOperateLog = [];
    }
}

